home *** CD-ROM | disk | FTP | other *** search
- Path: cliffy.lfwc.lockheed.com!news
- From: Ken Garlington <GarlingtonKE@lfwc.lockheed.com>
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
- Subject: Re: C/C++ knocks the crap out of Ada
- Date: Mon, 11 Mar 1996 13:54:30 +0000
- Organization: Lockheed Martin Tactical Aircraft Systems
- Message-ID: <31443096.225@lfwc.lockheed.com>
- References: <00001a73+00002504@msn.com> <4h5hgj$vpd@tomquartz.niestu.com> <4h7jskINNnph@anvil.ugrad.cs.ubc.ca> <313EDF38.61C1@lfwc.lockheed.com> <4hpoth$6uo@sun152.spd.dsccc.com>
- NNTP-Posting-Host: cliffy.lfwc.lockheed.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Macintosh; I; 68K)
-
- Kevin Cline wrote:
- >
- > Ken Garlington <GarlingtonKE@lfwc.lockheed.com> wrote:
- > >Kazimir Kylheku wrote:
- > >> I bet I could get a Fortran programmer to write Ada code that
- > >> looks like Ada but is really Fortran in disguise. :)
- > >
- > >Except - it would not have the aliasing errors of FORTRAN common blocks,
- > >for example.
- >
- > That is a very old Fortran programmer error, virtually eliminated when the
- > INCLUDE statement became widely supported and it was easy to ensure that
- > all modules had consistent COMMON block definitions.
-
- Actually, you can get bit by the INCLUDE as well, since you can compile different
- references at different times. If the included file changes in between....
- Not a problem with Ada, due to the compilation order checks.
-
- Nonetheless, taking a program written in FORTRAN and converting it to Ada
- provides benefits, even if you don't restructure the program.
-
- > The modern Fortran programmer using Ada would put all the data in
- > a package named 'GLOBALS'. There would be no aliasing problems, but
- > huge problems due to lack of encapsulation.
-
- Certainly, a poorly-designed program can be worse than a well-designed program.
- I can't argue otherwise. However, as your own statement points out, a
- poorly-designed program in Ada is often better than a poorly-designed program in
- FORTRAN. Which was my point.
-